<template>
	<view class="mainBox">
		<view v-html="content"></view>
	</view>
</template>

<script>
	import {
		getSystemDescription
	} from "../../api/index.js"
	export default {
		data() {
			return {
				content: '',
				pageType: '',
			}
		},
		onLoad(opt) {
			this.pageType = opt.pageType
			this.pageType=='广告任务'?this.setNavTitle('广告任务'):this.setNavTitle('新手教程')
			console.log(this.pageType)
			this.onGetSystemDescription()
		},
		methods: {
			async onGetSystemDescription() {
				const res = await getSystemDescription(`s=ApiZwyRequest/sysdesc`, {
					type: this.pageType == '广告任务' ? 0 : 1
				})
				const {
					status,
					msg,
					data,

				} = res.data
				if (status == 1) {
					this.content = data
					// console.log(data, "fff")
				} else {
					this.showToast(msg)
				}
			},

		}
	}
</script>

<style>
	.mainBox{
		padding: 30rpx;
	}

</style>
